import request from '@/utils/request'
//企业认证接口
export function companyAuth(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/often/XfJjpSysUserLingGong/addaAuthEnterprises`,
		data
	})
}
//个人中心我的发布列表接口
export function myFbMore(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/comPanyInfoListByLoginId`,
		data,
		options: {
			load: false
		}
	})
}
//个人中心我的发布上下架接口
export function upShelves(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/Upshelves`,
		data
	})
}
//我的发布删除职位接口
export function deleteJob(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/deleteInfo`,
		data
	})
}

//通讯录接口
export function concactLis(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobAddressBook/MyAddressBookList`,
		data,
		options: {
			load: false
		}
	})
}
//通过手机号查询系统用户
export function queryPhoneUser(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobAddressBook/queryBySysUserByPhone`,
		data
	})
}
//通过手机号添加联系人
export function addPhoneUser(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobAddressBook/SaveAddressBook`,
		data
	})
}
//接触绑定联系人
export function delPhoneUser(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobAddressBook/UnbindAddressBook`,
		data
	})
}

//零工-企业-上半部分详情
export function jobOddInfo(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/upperHalfByInfoId`,
		data
	})
}
// 我的发布统计接口
export function fbStatic(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/myReleaseStatistics`,
		data
	})
}
//抢单统计接口
export function qdStatic(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/myGrabStatistics`,
		data
	})
}
//企业端个人，企业详情接口
export function getComOrUserInfo(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/comPanyByInfo`,
		data
	})
}
//企业编辑详情接口
export function editUserInfo(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/comPanyInfoUpdateId`,
		data
	})
}

//零工人员
// 待派工
export function treatHireList(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/treatHireList`,
		data,
		options:{
			load:false
		}
	})
}
//已到岗
export function performList(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/performList`,
		data,
		options:{
			load:false
		}
	})
}
//已录用/已完成
export function hireList(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/hireList`,
		data,
		options:{
			load:false
		}
	})
}
//订单管理-待结算
export function settlementList(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/settlementList`,
		data,
		options:{
			load:false
		}
	})
}



//零工派单-拒绝
export function refuseOrPg(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobRegistration/registrationEdit`,
		data
	})
}
//做工列表
export function myGrabOrderList(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/MyGrabOrderList`,
		data,
		options:{
			load:false
		}
	})
}
// 抢单列表
export function myDispatchWorkList(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/MyDispatchWorkList`,
		data,
		options:{
			load:false
		}
	})
}
//我的报名
export function getMybm(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/ComMyRegisList`,
		data,
		options:{
			load:false
		}
	})
}

export function setCyg(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobFrequentlyWork/saveFrequentlyWork`,
		data
	})
}



//评价
export function pjFormApi(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobEvaluation/ComSaveValuation`,
		data
	})
}
//待结算确认
export function settleConfirm(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/settlementConfirm`,
		data
	})
}
//工作记录
export function workRecord(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/queryProcessListByOrderId`,
		data
	})
}
//工作详情
export function getCompanyJobDetail(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/workOrRobQueryPositionDetails`,
		data
	})
}
//企业等待审核接口
export function getWaitShInfo(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/often/XfJjpSysUserLingGong/queryCheckStatus`,
		data
	})
}


//根据得到的配置值获取广告轮播列表
export function getAdvertisement(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjpoddjob/licensefree/getAdvertisement`,
		data
	})
}


//查询自己被绑定的经纪人
export function queryMyBoundBroker(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobUser/queryMyBoundBroker`,
		data
	})
}


//企业/用户-主动删掉关系
export function deleteRelationship(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjibBrokerRelation/deleteRelationship`,
		data
	})
}

//企业认证前看企业是否认证过了
export function findEnterpriseInfoById(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlement/findEnterpriseInfoById`,
		data
	})
}
//绑定钱包 创建企业
export function addEnterprise(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlement/addEnterprise`,
		data
	})
}

//绑定钱包  修改企业信息，只能修改财税信息
export function updateEnterpriseInfo(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlement/updateEnterpriseInfo'`,
		data
	})
}

// 根据企业id查询企业获取余额
export function getBalance(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlement/getBalance`,
		data
	})
}
// 企业获取余额 发布职位的时候判断下 如余额不足不允许发布职位，提示让充钱
export function getAllBalance(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlement/getAllBalance`,
		data
	})
}

// 发票详情
export function findInvoiceBaseInfo(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlement/findInvoiceBaseInfo`,
		data
	})
}

// 企业账单查询
export function findBillPage(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlementTaskBill/findBillPage`,
		data
	})
}



// 开发票
export function applyInvoice(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlement/applyInvoice`,
		data
	})
}

// 企业交易流水
export function xfJjpOddjobSettlementTransactionFlowList(data){
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/settlement/xfJjpOddjobSettlementTransactionFlow/list`,
		data
	})
}